# Contributor: Miguel Terron <miguel.a.terron@gmail.com>
# Maintainer: Miguel Terron <miguel.a.terron@gmail.com>
pkgname=mawk
pkgver=1.3.4
_pkgdate=20200120
pkgrel=2
pkgdesc="mawk is an interpreter for the AWK Programming Language"
url="https://invisible-island.net/mawk/"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-doc"
source="https://invisible-island.net/datafiles/release/mawk.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver-$_pkgdate

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="14d9a6642ce931bf6457d248fc2d6da4f0ea7541976ca282ea708b26df048f86fdf92c27f72d497501ccd43a244d1d1a606f1a2f266a7558306fea35dcc3041b  mawk.tar.gz"
